﻿using Basic.WxApiService.Interface;

namespace Basic.WxApiService.WxModel
{
    public class WxMerToken
    {
        private readonly IWxMerTokenService _Service;
        public WxMerToken (IWxMerTokenService service, string token, string appId, string wxAppId)
        {
            this._Service = service;
            this.WxAppId = wxAppId;
            this.AppId = appId;
            this.Token = token;
        }
        public string WxAppId { get; }

        public string AppId { get; }
        public string Token { get; private set; }
        public void ResetToken ()
        {
            this.Token = this._Service.ResetToken(this.AppId, this.WxAppId, this.Token);
        }
    }
}
